<template>
	<view>
		<div class="top">
			<text :class="active1" @click="going">拍卖中</text>
			<text :class="active2" @click="finished">已结束</text>
		</div>
		<view class="bottom">
			<view v-if="show">
				<view class="one">
					<image src="../../static/other/limit_going.jpg"></image>
					<view class="title">
						北京荣宝网络文物拍卖会（第四期）...
					</view>
					<view class="desc">
						<text class="time">距结束：6小时16分12秒</text>
						<text class="enter">进入专场 ></text>
					</view>
				</view>
				<view class="one">
					<image src="../../static/other/limit_going.jpg"></image>
					<view class="title">
						北京荣宝网络文物拍卖会（第三期）...
					</view>
					<view class="desc">
						<text class="time">距结束：6小时16分12秒</text>
						<text class="enter">进入专场 ></text>
					</view>
				</view>
			</view>
			<view v-else>
				<view class="one">
					<image src="../../static/other/limit_finished.jpg"></image>
					<view class="title">
						北京荣宝网络文物拍卖会（第二期）...
					</view>
					<view class="desc">
						<text class="time">已结束：2021年04月19日21:00</text>
						<text class="enter">进入专场 ></text>
					</view>
				</view>
				<view class="one">
					<image src="../../static/other/limit_finished.jpg"></image>
					<view class="title">
						北京荣宝网络文物拍卖会（第一期）...
					</view>
					<view class="desc">
						<text class="time">已结束：2021年04月19日21:00</text>
						<text class="enter">进入专场 ></text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data() {
			return {
				show: true,
				active1: 'active',
				active2: ''
			}
		},
		methods:{
			going(){
				this.show = true
				this.active1 = 'active',
				this.active2 = ''
			},
			finished(){
				this.show = false
				this.active1 = '',
				this.active2 = 'active'
			}
		}
	}
</script>

<style>
	.top{
		margin: 30rpx auto;
		display: flex;
		justify-content:space-evenly;
		font-weight: bold;
	}
	
	.top text.active{
		border-bottom:7rpx solid #bd0505;
		padding-bottom:10rpx;
	}
	
	.bottom .one{
		width: 686rpx;
		height: 449rpx;
		background-color: #ffffff;
		box-shadow: 0rpx 0rpx 29rpx 3rpx rgba(17, 17, 17, 0.06);
		margin: 0 32rpx;
		margin-top:30rpx;
		padding:15rpx 20rpx;
	}
	
	.bottom .one image {
		width: 100%;
		height: 306rpx;
		margin-bottom: 20rpx;
	}
	
	.bottom .one .title{
		margin-bottom: 5rpx;
		padding: 0 10rpx;
		font-weight: bold;
	}
	
	.bottom .one .desc{
		padding:10rpx;
		display: flex;
		justify-content: space-between;
	}
	
	.bottom .one .desc .time{
		font-size: 18rpx;
		color:#8d8d8d;
	}
	
	.bottom .one .desc .enter{
		font-size: 18rpx;
		cursor: pointer;
	}
</style>
